/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.service;

import com.lczyfz.istep.common.persistence.Page;
import com.lczyfz.istep.common.service.CrudService;
import com.lczyfz.istep.modules.scene.dao.ScenePortDao;
import com.lczyfz.istep.modules.scene.entity.ScenePort;
import com.lczyfz.istep.modules.scene.entity.SceneVmTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 端口管理Service
 * @author dh
 * @version 2017-04-17
 */
@Service
@Transactional(readOnly = true)
public class ScenePortService extends CrudService<ScenePortDao, ScenePort> {

	public ScenePort get(String id) {
		return super.get(id);
	}
	
	public List<ScenePort> findList(ScenePort scenePort) {
		return super.findList(scenePort);
	}
	
	public Page<ScenePort> findPage(Page<ScenePort> page, ScenePort scenePort) {
		return super.findPage(page, scenePort);
	}
	
	@Transactional(readOnly = false)
	public void save(ScenePort scenePort) {
		super.save(scenePort);
	}
	
	@Transactional(readOnly = false)
	public void delete(ScenePort scenePort) {
		super.delete(scenePort);
	}

	public List<ScenePort> findVmPortList(SceneVmTemplate sceneVmTemplate)
	{
		return dao.findVmPortList(sceneVmTemplate);
	}
	public List<ScenePort> findRouterPortList(String routerId)
	{
		return dao.findRouterPortList(routerId);
	}
}